import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'package:wowhy/pages/home_page/state.dart';

Reducer<HomePageState> buildReducer() {
  return asReducer(
    <Object, Reducer<HomePageState>>{
      ListAction.add: _add,
    },
  );
}

HomePageState _add(HomePageState state, Action action) {
  final HomePageState newState = state.clone();
  return newState;
}
